/*
 * DigaltalLogicRelay.h
 *
 *  Created on: 2012. 10. 16.
 *      Author: dalxx
 */
#include "PLCConfig.h"

#ifndef DIGALTALLOGICRELAY_H_
#define DIGALTALLOGICRELAY_H_

#include "Relay.h"
#include "BooleanCalculator.h"

namespace PLCLib {

class DigitalLogicRelay: public PLCLib::Relay {
private:

	BooleanCalculator *pcalculator;
public:
	DigitalLogicRelay(const char* _name);
	virtual ~DigitalLogicRelay();
	void SetCalculator(BooleanCalculator* pcal);
	virtual bool CalculateNext();
};

} /* namespace PLCLib */
#endif /* DIGALTALLOGICRELAY_H_ */
